package com.zql.dao;


import com.github.pagehelper.Page;
import com.zql.pojo.User;

import java.util.List;

public interface UserDao {

    //查询所有用户
    List<User> findAll(User user) throws Exception;

    //查询所有用户
    List<User> findAllPage(User user) throws Exception;

    //根据条件进行用户查询
    User findByCondition(User user) throws Exception;

    //根据条件进行用户查询
    void addUser(User user) throws Exception;

    //根据条件进行用户查询
    void updateUser(User user) throws Exception;

    //根据条件进行用户查询
    void deleteUser(int id) throws Exception;
}
